package bestTeam.WalkieDoggie.client.Serializables;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;

import bestTeam.WalkieDoggie.client.walkieStatus;

public class UserRequest implements Serializable{

	private String userName;
	private String id;
	private String createdBy;
	private Date date;
	private String timeFrame;
	private String Message;
	private String[] volunteersId = null;
	private walkieStatus status;
	private Date creationDate;
	private String approvedWalkerID;
	private double rank;
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getNumofVolunteers() {
		if (volunteersId==null)
			return 0;
		else
			return volunteersId.length;
	}
	
	public String[] getVolunteers() {
		return volunteersId;
	}
	public void setVolunteers(String[] volunteersId) {
		this.volunteersId = volunteersId;
	}
	public String getMessage() {
		return Message;
	}
	public void setMessage(String message) {
		Message = message;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getTimeFrame() {
		return timeFrame;
	}
	public void setTimeFrame(String timeFrame) {
		this.timeFrame = timeFrame;
	}

	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public walkieStatus getStatus() {
		return status;
	}
	public void setStatus(walkieStatus status) {
		this.status = status;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}



	@Override
	public String toString() {
		return "UserRequest [userName=" + userName + ", id=" + id
				+ ", createdBy=" + createdBy + ", date=" + date
				+ ", timeFrame=" + timeFrame + ", Message=" + Message
				+ ", volunteersId=" + Arrays.toString(volunteersId)
				+ ", status=" + status + ", creationDate=" + creationDate + "]";
	}

	public String getApprovedWalkerID() {
		return approvedWalkerID;
	}

	public void setApprovedWalkerID(String approvedWalkerID) {
		this.approvedWalkerID = approvedWalkerID;
	}

	public double getRank() {
		return rank;
	}

	public void setRank(double rank) {
		this.rank = rank;
	}



}
